{{ define "main" }}
<div class="post animated fadeInDown">
  
  <div class="single-post">
    <div class="post-title">
      <h2>{{ .Title }}</h2>
      {{ if eq .Type "post"}}
      <div class="info">
        <span class="date">📅 {{ .Date.Format "2006-01-02" }}</span>
        <span class="author">👦 {{ .Params.Author }}</span>
        <span class="wordcount">📖 {{ $.WordCount }}字</span>
        <span class="readtime">⏱ {{ $.ReadingTime }}分钟</span>
      </div>
      {{ end }}
      </div>
    <div class="post-content">
      {{ .Content }}
    </div>
    <div class="post-footer">
      <div class="info">
      {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}
      {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
      </div>
      {{ partial "taxonomy/share.html" . }}
    </div>

    {{- if .Site.Params.valine.enable -}}
    {{ partial "taxonomy/valine.html" . }}
    {{- end }}
  </div>

  {{ partial "taxonomy/menu.html" . }}
  
  {{ if .Site.Params.toc | default false }}
  {{ partial "taxonomy/toc.html" . }}
  {{ end }}

</div>
{{ end }}